import request from "@/utils/request";

// 获取评委列表接口
export function listJudges(query) {
  return request({
    url: "/judges/list",
    method: "get",
    params: query,
  });
}

// 新增评委接口
export function addJudge(data) {
  return request({
    url: "/judges/add",
    method: "post",
    data: data,
  });
}

// 冻结评委
export function freezeJudge(id) {
  return request({
    url: `/judge/freeze/${id}`,
    method: "put",
  });
}

// 解冻评委
export function unfreezeJudge(id) {
  return request({
    url: `/judge/unfreeze/${id}`,
    method: "put",
  });
}
